// import isEmpty from 'lodash/isEmpty'
export default function pdaGetPageData({ vm, action, done }) {
  let moduleId = action.extension.paginationSelect.value[0] //获取选中空间唯一得字段
  console.log('----获取分页器数据操作----', action, 'moduleId', moduleId)
  // console.log('---------这是啥', action.extension.paginationSelect.value)
  console.log('分页器vm', vm, 'vuiComponents[moduleId]', vm.vuiComponents[moduleId].self.$getData())
  if (moduleId) {
    const formItem = vm.vuiComponents[moduleId].self.$getData() //获取选中的组件
    // const formItem = vm.$getData()
    // 存储动作数据
    vm.$store.dispatch('actionDatas/setActionsData', {
      moduleId: vm.info._id,
      actionId: action._id,
      actionData: formItem,
    })
    done(null, formItem)
  }
}
